package CollectionDemo.ShowHand.pojo;

import java.util.LinkedList;

public class Player {
    //玩家名字
    private String name;
    //手牌
    private LinkedList<Desk> hands = new LinkedList<Desk>();

    public Player(String name) {
        this.name = name;
    }
    //获得一张手牌
    public void getHand(Desk desk) {
        hands.add(desk);
        System.out.println(this.name + "您目前的手牌是：" + hands);
    }

    public LinkedList<Desk> getHands() {
        return this.hands;
    }
}
